package reflection.entity;

import reflection.annotation.MyAnnotation;

/**
 * @author liweimin
 * @date 2021/4/8 18:57
 * @description
 */
public class User {
    @MyAnnotation(id = 2)
    protected String name;
    protected Integer age;
    protected String userId;

    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", userId='" + userId + '\'' +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public User() {
    }

    public User(String name, Integer age, String userId) {
        this.name = name;
        this.age = age;
        this.userId = userId;
    }
}
